import request from "@utils/request";

export function getWithdrawConfig(){
    return request({
        url: "/api/member/userWirthDrawconfig",
        method: "get"
    });
}

export function setUserWirhdraw(paypassword, amount){
    return request({
        url: "/api/member/setUserWirhdraw",
        method: "post",
        data: {
            paypassword,
            money: amount
        }
    })
}

export function getWithdrawList(page){
    return request({
        url: "/api/member/getUserWithdrawList",
        method: "get",
        params:{
            page
        }
    })
}
export function getUserWithdrawDetail(id){
    return request({
        url: "/api/member/getUserWithdrawDetail",
        method: "get",
        params: {
            id
        }
    })
}
